<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="vue.js"></script>
    <style>
        .one{

            width: 200px;
            height: 400px;
            border: 2px solid red;
        }
        .tow{
            background-color: bisque;
        }
    </style>
</head>
<body>
    <div id="app">
        <p :class="{one:oneClass,tow:towClass}">我是p标签</p>
    </div>
    <script>
        let vm= new Vue({
            el:"#app",
            data:{
                oneClass:true,
                towClass:true
            }//注意大小写以及拼音错误，注意观察仔细

        })
    </script>
</body>
</html>